package com.mobile.ado.setting.power;

import android.content.Context;
import android.content.Intent;

public class CustomizedPowerManger {
	private Context context;

	public static final String ACTION_REQUEST_SHUTDOWN = "android.intent.action.ACTION_REQUEST_SHUTDOWN";

	public CustomizedPowerManger(Context context) {
		this.context = context;
	}

	public void powerOff() {
		Intent newIntent = new Intent(ACTION_REQUEST_SHUTDOWN);
		newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(newIntent);
	}
}
